package com.hwadee.JPKC.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hwadee.JPKC.dao.courseViewMapper;
import com.hwadee.JPKC.entity.courseView;
import com.hwadee.JPKC.service.courseViewService;
@Service
public class courseViewServiceImpl implements courseViewService {
	
	@Autowired
	private courseViewMapper courseViewmpper;
	
	@Override
	public List<courseView> FindAll(int courseId) {
		// TODO Auto-generated method stub
		return courseViewmpper.FindAll(courseId);
	}

	@Override
	public courseView FindByID(int vId) {
		// TODO Auto-generated method stub
		return courseViewmpper.selectByPrimaryKey(vId);
	}

	@Override
	public int insert(courseView courseView) {
		// TODO Auto-generated method stub
		return courseViewmpper.insertSelective(courseView);
	}

	
}
